using System;
using Headspring.Training.Core.Model;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

namespace Headspring.Training.UnitTests.Model
{
	[TestFixture]
	public class HistoryEntryTester
	{
		[Test]
		public void ShouldFormatFullName()
		{
			var entry = new HistoryEntry(new Employee("", "Joe", "Bob", ""),
			                             null, null, DateTime.Now);

			Assert.That(entry.GetFullName(), Is.EqualTo("Bob, Joe"));
		}
	}
}